﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MRSUtil
{
    public class MRSConsts
    {
        /**************************公共部分**************************/

        public const string Code_Key = "MRSKEY";
        /// <summary>
        /// 已存在 -1
        /// </summary>
        public const int Code_Exists = -1;
        /// <summary>
        /// 不存在 -2
        /// </summary>
        public const int Code_NotExists = -2;      
        /// <summary>
        /// 操作成功 1
        /// </summary>
        public const int Code_Success = 1;

        /// <summary>
        /// 操作失败 0
        /// </summary>
        public const int Code_Failed = 0;

        /// <summary>
        /// 系统错误 -10
        /// </summary>
        public const int Code_Error = -10;
        /// <summary>
        /// 无权限 -11
        /// </summary>
        public const int Code_NoPermission = -11;

       

        public const string Code_Yes = "Y";                     //是
        public const string Code_No = "N";                      //否

        public const string Code_Disabled = "D";                //禁用
        public const string Code_Enable = "E";                  //启用

        

        /******************用户登录*********************/

        public const string MRS_User_Session = "MRSUser";       //Session名称
        public const string MRS_User_Cookie = "MRSCookie";      //cookie名称
        public const int MRS_UserCookie_Expire = 30;            //cookie 30天后过期

        /******************用户角色*********************/                
        /// <summary>
        /// 管理员
        /// </summary>
        public const string MRSUserRole_Admin = "A";
        /// <summary>
        /// 客户
        /// </summary>
        public const string MRSUserRole_Client = "C";
        /// <summary>
        /// 督导
        /// </summary>
        public const string MRSUserRole_DD = "D";
        /// <summary>
        /// 研究员
        /// </summary>
        public const string MRSUserRole_YJY = "J";
        /// <summary>
        /// QC
        /// </summary>
        public const string MRSUserRole_QC = "Q";
        /// <summary>
        /// 录入员
        /// </summary>
        public const string MRSUserRole_Input = "I";


        /****************************系统消息常量***************************/
        public const string MRS_Name = "XXXXX系统";
        
    }
}
